<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', 'Home\ShouyeController@index');


	//前台首页
	Route::get('/home','Home\ShouyeController@index');
	//前台论坛
	Route::controller('/home/post','Home\PostController');
	//前台版块
	Route::controller('/home/block','Home\BlockController');
	//前台新闻
	Route::controller('/home/news','Home\NewsController');

	// 前台商品主页
	Route::get('/home/shihuo','home\ShihuoController@index');
	Route::controller('home/shihuo','home\IndexController');

	// 前台识物页面
	Route::get('/home/shiwu','home\ShiwuController@index');
	Route::controller('/home/shiwu','home\ShiwuController');

/*
	前台
*/ 
	//前台首页
	Route::get('/','Home\ShouyeController@index');
	Route::Controller('/home/shouye','Home\ShouyeController');

	//前台路由组
	Route::group(['middleware'=>'HomeLogin'],function(){
	//前台个人页面
	Route::Controller('/home/mypage','Home\MypageController');

	});
	//前台登录注册
	Route::Controller('/home/login','Home\LoginController');

	//验证码
	Route::get('/Vcode','Home\LoginController@Vcode');
	Route::get('/Ecode','Home\LoginController@Ecode');
	// Route::get('/email','Home\LoginController@Emailcode');







//后台路由组
Route::group(['middleware'=>'AdminLogin'],function(){
	//后台首页
	Route::get('/admin','Admin\FpageController@layout');
	//后台用户管理
	Route::controller('/admin/user','Admin\UserController');
	//后台板块管理
	Route::controller('/admin/block', 'Admin\BlockController');
	//后台帖子管理
	Route::controller('/admin/post', 'Admin\PostController');
	//后台新闻管理
	Route::controller('/admin/news', 'Admin\NewsController');
	// 后台分类管理
	Route::controller('/admin/cate','admin\CateController');
	// 商店管理
	Route::controller('/admin/shop','admin\ShopController');
	// 后台商品管理
	Route::controller('/admin/goods','admin\GoodsController');
	// 后台商品帖子管理
	Route::controller('/admin/gposts','admin\GpostsController');

});
//后台登录
Route::controller('/admin/login','Admin\LoginController');









